package cn.xinfei.xdecision.common.model.enginex.model;


import lombok.Data;

import java.util.Objects;

@Data
public class RuleSetDecisionResultData {


    /**
     * pass
     */
    private String result;
    private Double score;

    /**
     * 全重最大的导流标签
     */
    private String diversionLabel;

    /**
     * 最大禁申天数
     */
    private int prohibitedApplyTime;

    /**
     * 拒绝码name
     */
    private String rejectNames;


    /**
     * 拒绝分支name
     */
    private String rejectBranchNames;

    /**
     * 最后一个命中的规则名
     */
    private String finalRejectName;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        RuleSetDecisionResultData that = (RuleSetDecisionResultData) o;
        return Objects.equals(rejectNames, that.rejectNames) &&
                Objects.equals(rejectBranchNames, that.rejectBranchNames) &&
                Objects.equals(finalRejectName, that.finalRejectName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(rejectNames, rejectBranchNames, finalRejectName);
    }
}
